<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文本和字体相关</title>
    <style>
        div {
            width: 200px;
            height: 50px;
            border: 1px solid red;
            text-align: center; /*水平对齐方式*/
            line-height: 50px; /*设置行高:多行控制行间距,单行控制垂直居中*/
            /*文本修饰*/
            text-decoration: overline; /*上划线*/
            text-decoration: underline; /*下划线*/
            text-decoration: line-through; /*删除线*/
            text-decoration: none; /*去掉任何线条*/
            text-shadow: red 15px 15px 3px; /*文本阴影 颜色 x偏移值 y偏移值 浓度(数值越小越清晰)*/
            font-size: 30px; /*字体大小*/
            font-weight: bold; /*字体加粗*/
            font-style: italic; /*设置斜体*/
            font-family: cursive; /*设置字体*/
        }

        a {
            text-decoration: none;
        }

        h1 {
            font-weight: normal; /*去掉加粗*/
            font: 15px cursive; /*设置字体大小+字体*/
        }
    </style>
</head>
<body>
<h1>这是h1</h1>
<a href="">超链接</a>
<div>文本字体相关</div>

</body>
</html>